
import { DvaLoadingState } from 'dva-loading-ts'
import users from "./user";
import goods from "./goods";
import articals from "./articals";
import recommends from './recommends';
// 默认导出model
const models = [users,goods,articals,recommends ];

// 导出各个model的类型
export type RootState = {
    // 当前的home的类型取home.state的类型
    loading: DvaLoadingState, 
    users:typeof users.state,
    goods:typeof goods.state,
    articals:typeof articals.state,
    recommends:typeof recommends.state
} 
export default models;